package com.tkuniyoshi.battleshipgame.common.Exception;

import com.tkuniyoshi.battleshipgame.common.log.intf.LogMessage;

public class BattleShipException extends Exception {
	private LogMessage exceptionMessage;
	private Object[] objects;
	
	public BattleShipException(LogMessage logMessage){
		exceptionMessage = logMessage;
	}
	
	public BattleShipException(LogMessage logMessage,Object[] obj){
		exceptionMessage = logMessage;
		objects = obj;
	}
	
	public LogMessage getLogMessage(){
		return exceptionMessage;
	}
	
	public Object[] getLogMessageObjects(){
		return objects;
	}
}
